//
//  AccountTool.h
//  CommunityNannyO2O
//
//  Created by apple on 15/8/17.
//  Copyright (c) 2015年 Apple. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#define kUserId @"user_id"
#define kClientId @"client_id"
#define KMidiId @"midi_id"
#define KNickName @"nickname"
#define KRealName @"real_name"
#define KEamil @"eamil"
#define KPhone @"phone"
#define KNationality @"nationality"
#define KSex @"sex"
#define KPeople @"people"
#define KIdCard @"idCard"
#define KBirthday @"birthday"
#define KHeadImg @"headImg"
#define KOrderId @"orderId"
#define KOrderPrice @"orderPrice"
#define KMaterialId @"materialId"

#define KPayItem @"KPayItem"

#define VPayBuyMusic @"PayBuyMusic" //支付曲谱/教程费用
#define VPaySignCost @"PaySignCost" //支付报名费用
#define VPayCerficationCost @"PayCerficationCost" //支付证书工本费用

//支付曲谱/教程费用后返回到的界面
#define KPayBuyMusicPopToInterface @"PayBuyMusicPopToInterface"

//支付曲谱/教程费用后返回到的曲谱列表
#define VPayBuyMusicPopToBuyMusicView @"PayBuyMusicPopToBuyMusicView"

//支付曲谱/教程费用后返回到的我的订单
#define VPayBuyMusicPopToMyOrderView @"PayBuyMusicPopToMyOrderView" 

//支付曲谱/教程费用后无需返回
#define VPayBuyMusicPopToNone @"PayBuyMusicPopToNone"

//支付结果
#define KPayResult @"PayResult"
#define VPaySuccess @"PaySuccess"
#define VPayFail @"PayFail"

#define KExamId @"examId"


//消息提醒
#define KMessageWarn @"MessageWarn"

//声音
#define KSystemSound @"SystemSound"

//震动
#define KVibration @"Vibration"

//开
#define On @"on"
//关
#define Off @"off"


@interface AccountTool : NSObject

+ (void)LoginWithUserId:(NSString *)userId
                 MidiId:(NSString *)midiId
               NickName:(NSString *)nickName
               RealName:(NSString *)realName
                  Email:(NSString *)email
                  Phone:(NSString *)phone
               National:(NSString *)national
                    Sex:(NSString *)sex
                 People:(NSString *)people
                 IdCard:(NSString *)idCard
               Birthday:(NSString *)birthday
                HeadImg:(NSString *)headImg;

+ (void)loginOut ;

+ (BOOL)checkLogin ;

+ (NSString *)takeUserId;
+ (NSString *)takeClientId;
+ (NSString *)takeMidiId;
+ (NSString *)takeNickName;
+ (NSString *)takeRealName;
+ (NSString *)takeEmail;
+ (NSString *)takePhone;
+ (NSString *)takeNational;
+ (NSString *)takeSex;
+ (NSString *)takePeople;
+ (NSString *)takeIdCard;
+ (NSString *)takeBirthday;
+ (NSString *)takeHeadImg;

+ (void)setGeTuiClientId:(NSString *)clientId;

//订单
+ (NSString *)takePayItem;
+ (NSString *)takePayMusicPopToView;
+ (NSString *)takePayResult;
+ (NSString *)takeExamId;
+ (NSString *)takeOrderId;
+ (NSString *)takeOrderPrice;
+ (NSString *)takeMaterialId;
+ (NSString *)takeMessageWarn;
+ (NSString *)takeSystemSound;
+ (NSString *)takeVibration;

+ (void)savePayItem:(NSString *)item;
+ (void)savePayMusicPopToView:(NSString *)item;
+ (void)savePayResult:(NSString *)item;
+ (void)saveExamId:(NSString *)examId;
+ (void)saveOrderId:(NSString *)orderId;
+ (void)saveOrderPrice:(NSString *)price;
+ (void)saveMaterialId:(NSString *)MaterialId;
+ (void)saveMessageWarn:(NSString *)value;
+ (void)saveSystemSound:(NSString *)value;
+ (void)saveVibration:(NSString *)value;

+ (void)saveNickName:(NSString *)value;
+ (void)saveMidiID:(NSString *)value;

@end






















